package com.cp.admin.modular.system.model;

import java.io.Serializable;

import com.baomidou.mybatisplus.activerecord.Model;
import com.baomidou.mybatisplus.annotations.TableName;
import java.io.Serializable;

/**
 * <p>
 * 系统6位随机码
 * </p>
 *
 * @author yy123
 * @since 2020-03-02
 */
@TableName("sys_code_dict")
public class CodeDict extends Model<CodeDict> {

    private static final long serialVersionUID = 1L;

    /**
     * 码
     */
    private String code;
    /**
     * 0可用 1不可用
     */
    private Integer status;


    public String getCode() {
        return code;
    }

    public void setCode(String code) {
        this.code = code;
    }

    public Integer getStatus() {
        return status;
    }

    public void setStatus(Integer status) {
        this.status = status;
    }

    @Override
    protected Serializable pkVal() {
        return this.code;
    }

    @Override
    public String toString() {
        return "CodeDict{" +
        "code=" + code +
        ", status=" + status +
        "}";
    }
}
